Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactored code in public/src/admin/appearance/themes.js to reduce function nesting #536

Open
wants to merge 1 commit into
base: f24
Choose a base branch
from

Conversation

evelynzhengg
Copy link

@evelynzhengg evelynzhengg commented Sep 5, 2024

Refactored function in themes.js to reduce function nesting to be less than 4. This was completed by creating smaller functions to increase readability.

Resolves #514

Warning:
https://sonarcloud.io/project/issues?cleanCodeAttributeCategories=ADAPTABLE&issueStatuses=OPEN%2CCONFIRMED&id=CMU-313_NodeBB&open=AZFmi_6LybYwxy-_uEU7

UI Manual Testing was done by clicking into settings and appearances. Then, revert was clicked to ensure proper console logs.
revertTest

File not covered in test coverage (used UI manual testing instead).

Copy link

sonarcloud bot commented Sep 5, 2024

@coveralls
Copy link

Pull Request Test Coverage Report for Build 10714704624

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 82.681%

Totals Coverage Status
Change from base Build 10607818019: 0.01%
Covered Lines: 22326
Relevant Lines: 25582

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactoring code in public/src/admin/appearance/themes.js
2 participants